package com.example.fish.utils;

import com.alibaba.fastjson.JSON;
import com.example.fish.vo.ResultMessage;
import lombok.Data;
import org.springframework.stereotype.Component;

public class MessageUtils {
   public static String getMessage(String message,Integer fromid,Integer targetid){
      ResultMessage resultMessage = new ResultMessage();
      resultMessage.setMessage(message);
      resultMessage.setFromid(fromid);
      resultMessage.setTargetid(targetid);
      return JSON.toJSONString(resultMessage);
   }
}
